﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TimeTableManagement.Entities;
using TimeTableManagement;

namespace TimeTableManagement.Controllers
{
    [Authorize]
    public class DeviceController : Controller
    {
        private QLSVContext db = new QLSVContext();

        //
        // GET: /Device/

        public ViewResult Index()
        {
            var tb_slot_room = db.Tb_Slot_Room.Include(t => t.Tb_Room).Include(t => t.Tb_Slot);
            return View(tb_slot_room.ToList());
        }

        protected override void Dispose(bool disposing)
        {
            db.Dispose();
            base.Dispose(disposing);
        }
    }
}